# -*- coding: utf-8 -*-
__author__ = 'sunnychou'
__date__ = '2019/7/6 20:45'


'''
工程调试文件
'''

import  os, sys

from scrapy.cmdline import execute

sys.path.append(os.path.dirname(os.path.abspath(__file__)))


#定义一个启动的爬虫名称
SPIDER_NAME = "jd"

#执行scrapy命令行
execute(["scrapy", "crawl", SPIDER_NAME])

